[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 freemem()               Free a Previously Allocated MS-DOS Memory Block

 #include   <dos.h>

 int        freemem(seg);
 unsigned   seg;                         Segment address

    freemem() frees a memory block allocated by a previous call to
    allocmem().  'seg' is the segment address of that block.

       Returns:     0, if successful.  On error, -1 is returned and
                    'errno' (defined in <errno.h>) is set to ENOMEM
                    (insufficient memory).

   Portability:     MS-DOS only.


See Also: allocmem() malloc() setblock()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson